package com.poitest.service.impl;

import com.poitest.mapper.TTitleMapper;
import com.poitest.pojo.TTitle;
import com.poitest.service.TitleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TitleServiceImpl implements TitleService {
    @Autowired
    TTitleMapper tTitleMapper;

    @Override
    public List<TTitle> selectByExample(Object o) {
        return tTitleMapper.selectByExample(null);
    }

    @Override
    public int insert(TTitle tTitle) {
        return tTitleMapper.insert(tTitle);
    }

    @Override
    public int deleteByPrimaryKey(int rid) {
        return tTitleMapper.deleteByPrimaryKey(rid);
    }

    @Override
    public TTitle selectByPrimaryKey(int rid) {
        return tTitleMapper.selectByPrimaryKey(rid);
    }

    @Override
    public int updateByPrimaryKeySelective(TTitle tTitle) {
        return tTitleMapper.updateByPrimaryKeySelective(tTitle);
    }
}
